package com.kly.springbootinit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kly.springbootinit.model.dto.payment.PaymentAddRequest;
import com.kly.springbootinit.model.entity.Payment;
import com.kly.springbootinit.model.vo.PaymentVO;

/**
* @author admin
* @description 针对表【payment(支付记录表)】的数据库操作Service
* @createDate 2025-05-21 14:34:09
*/
public interface PaymentService extends IService<Payment> {

    /**
     * 创建支付记录
     * @param paymentAddRequest
     * @return
     */
    PaymentVO createPayment(PaymentAddRequest paymentAddRequest);

    /**
     * 支付
     *
     * @param id
     * @param payMethod
     * @return
     */
    PaymentVO payPayment(Long id, String payMethod);
}
